Component({
  properties: {
    // 这里定义了innerText属性，属性值可以在组件使用时指定
  },
    // 这里是一些组件内部数据
    data: {
      imgUrls: [
        '../image/cart2.jpg',
        '../image/cart3.jpg',
        '../image/cart4.jpg',
         '../image/cart5.jpg'
      ],
        // 是否显示面板指示点
      indicatorDots: true,
        //  autoplay 是否自动切换
      autoplay: true,
       //  自动切换时间间隔
      interval: 4000,
        // 滑动动画时长
      duration: 1000,
      circular:true,
    //  改变当前的图片样式
        imgStyle:0,
        markers: [{
            iconPath: "/pages/component/image/timg.jpg",
            id: 0,
            title:"厚朴软件学院",
            longitude: 114.499402,
            latitude: 30.554626,
            width: 25,
            height: 25
        }],
        polyline: [{
            points: [{
                longitude: 113.3245211,
                latitude: 23.10229
            }, {
                longitude: 113.324520,
                latitude: 23.21229
            }],
            color:"#FF0000DD",
            width: 2,
            dottedLine: true
        }],
        controls: [{
            id: 1,
            iconPath: '/resources/location.png',
            position: {
                left: 0,
                top: 300 - 50,
                width: 50,
                height: 50
            },
            clickable: true
        }]



    }
  ,
  methods:
    {
        setStyle(e){
            this.setData({
                imgStyle:e.detail.current
            });
        },
        intervalChange: function (e) {
            this.setData({
                interval: e.detail.value
            })
        },
        durationChange: function (e) {
            this.setData({
                duration: e.detail.value
            })
        },
        regionchange(e) {
            console.log(e.type)
        },
        markertap(e) {
            console.log(e.markerId)
        },
        controltap(e) {
            console.log(e.controlId)
        }
    }
})



